package com.token.iot.bratterycharging.gateway.api;

import java.util.List;
import java.util.Map;

import com.outstanding.framework.core.PendingException;

/**
 * 业务接口
 * @author chenzhixuan
 *
 */
public interface BusinessFacade {
	
	
	
	
	
	
	//public boolean remotePower(String imei,boolean flag) throws PendingException;
	
	
	


	public List<Port> getPortInfo(String imei) throws PendingException;


	//public String getMainboard(String imei) throws PendingException;


	public Boolean setDeviceParams(String imei, int money, int first, int second, int third) throws PendingException;


	public DeviceParam getDeviceParams(String imei) throws PendingException;


	public Boolean setDevicePort(String imei, int index, boolean flag) throws PendingException;


	

	public int charge(String imei, int index, int fenzhong) throws PendingException;





	public Port stopCharge(String imei, int index) throws PendingException;





	public Boolean setPowerRatio(String imei, PowersFee pf) throws PendingException;





	public Boolean setDevicePartEnable(String imei, boolean cardFlag, boolean coinFlag) throws PendingException;





	public Port getPortChargeState(String imei, int index) throws PendingException;





	public DeviceState getDeviceChargeState(String imei) throws PendingException;





	public ConsumptionAmount getConsumptionAmount(String imei) throws PendingException;





	public Boolean setChargedPolicy(String imei, boolean autoFlag, boolean cardFlag) throws PendingException;





	public PowersFee getPowerRatio(String imei) throws PendingException;





	public String getDeviceVersion(String imei) throws PendingException;
	
	
}
